package com.zhiche.lisa.bms.dao.model.contract;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

/**
 * <p>
 * 合同车队明细表
 * </p>
 *
 * @author liuanshun
 * @since 2018-11-06
 */
@TableName("lisa_contract_fleet_dtl")
public class ContractFleetDtl extends Model<ContractFleetDtl> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@JsonSerialize(using= ToStringSerializer.class)
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 合同主表ID
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 车队ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
	@TableField("fleet_id")
	private Long fleetId;
    /**
     * 车队名称
     */
	@TableField("fleet_name")
	private String fleetName;
    /**
     * 是否预付: 0-是; 1-否
     */
	@TableField("is_prepay")
	private Integer isPrepay;
    /**
     * 油卡支付预付比例
     */
	@TableField("oil_prepay_rate")
	private BigDecimal oilPrepayRate;
    /**
     * 油卡支付尾款比例
     */
	@TableField("oil_finalpay_rate")
	private BigDecimal oilFinalpayRate;
    /**
     * 现金支付预付比例
     */
	@TableField("cash_prepay_rate")
	private BigDecimal cashPrepayRate;
    /**
     * 现金支付尾款比例
     */
	@TableField("cash_finalpay_rate")
	private BigDecimal cashFinalpayRate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public Long getFleetId() {
		return fleetId;
	}

	public void setFleetId(Long fleetId) {
		this.fleetId = fleetId;
	}

	public String getFleetName() {
		return fleetName;
	}

	public void setFleetName(String fleetName) {
		this.fleetName = fleetName;
	}

	public Integer getIsPrepay() {
		return isPrepay;
	}

	public void setIsPrepay(Integer isPrepay) {
		this.isPrepay = isPrepay;
	}

	public BigDecimal getOilPrepayRate() {
		return oilPrepayRate;
	}

	public void setOilPrepayRate(BigDecimal oilPrepayRate) {
		this.oilPrepayRate = oilPrepayRate;
	}

	public BigDecimal getOilFinalpayRate() {
		return oilFinalpayRate;
	}

	public void setOilFinalpayRate(BigDecimal oilFinalpayRate) {
		this.oilFinalpayRate = oilFinalpayRate;
	}

	public BigDecimal getCashPrepayRate() {
		return cashPrepayRate;
	}

	public void setCashPrepayRate(BigDecimal cashPrepayRate) {
		this.cashPrepayRate = cashPrepayRate;
	}

	public BigDecimal getCashFinalpayRate() {
		return cashFinalpayRate;
	}

	public void setCashFinalpayRate(BigDecimal cashFinalpayRate) {
		this.cashFinalpayRate = cashFinalpayRate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ContractFleetDtl{" +
			", id=" + id +
			", headId=" + headId +
			", fleetId=" + fleetId +
			", fleetName=" + fleetName +
			", isPrepay=" + isPrepay +
			", oilPrepayRate=" + oilPrepayRate +
			", oilFinalpayRate=" + oilFinalpayRate +
			", cashPrepayRate=" + cashPrepayRate +
			", cashFinalpayRate=" + cashFinalpayRate +
			"}";
	}
}
